package com.toro.server.service;

import com.toro.dao.Impl.UserDaoImpl;
import com.toro.dao.UserDao;
import com.toro.utils.MysqlConnection;
import lombok.extern.slf4j.Slf4j;

import java.io.BufferedReader;
import java.io.FileReader;
import java.sql.Connection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ClassName: UserServiceMemoryImpl
 * @Description:
 * @Author: ToroLHZ
 * @Date: 2023/12/11 17:34
 */
@Slf4j
public class UserServiceMemoryImpl implements UserService {
    private static UserDao userDao = new UserDaoImpl();

    @Override
    public boolean login(String username, String password) {
        boolean login = userDao.getUser(username, password);
        log.debug("用户登录查询结果：{}", login);
        return login;
    }

    /**
     * 获取所有用户信息
     */
    public void getAllUserinfo() {

    }
}
